package com.ruoyi.hospital.domain.consultationInfo;

import java.math.BigDecimal;
import java.util.List;

import com.ruoyi.common.core.domain.NewBaseEntity;
import com.ruoyi.hospital.domain.member.MemberConInfo;
import com.ruoyi.hospital.domain.prescriptionInfo.PrescriptionDrug;
import com.ruoyi.hospital.domain.prescriptionInfo.PrescriptionInfo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 问诊信息对象 consultation_info
 * 
 * @author wendao
 * @date 2024-08-20
 */
public class ConsultationInfo extends NewBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 问诊单号*/
    private String conNo;

    /** 医院信息 */
    @Excel(name = "医院名称")
    private String hisName;
    private Integer hisId;

    /** 问诊金额 */
    @Excel(name = "问诊金额")
    private BigDecimal conAmount;

    /** 咨询类型 */
    @Excel(name = "咨询类型",dictType = "con_type")
    private Integer conType;

    /** 咨询状态 */
    @Excel(name = "咨询状态",dictType = "con_state")
    private Integer conState;

    /** 预约时间 */
    @Excel(name = "预约时间")
    private Integer appointTime;

    //正式问诊的开始时间
    private Integer beginTime;

    /** 就诊人id */
    @Excel(name = "就诊人id")
    private Integer mcId;
    private MemberConInfo memberConInfo;

    /** 图片描述 */
    @Excel(name = "图片描述")
    private String pics;

    /** 病情描述 */
    @Excel(name = "病情描述")
    private String content;

    private Integer payWay; //支付方式



    /********************衍生字段*******************/
    //分组使用
    private String groupType;

    private Integer pid;  //处方信息id
    private String prescriptionNumber; //处方编号
    private String pharmacistName; //审核医生
    private Integer prescriptionAuditTime; //审核时间
    private Integer prescriptionState; //处方状态
    private String  preDiagnosis;
    /** 医生信息 */
    private String docName;
    private String docNickname;
    private String docAvatar;
    private Integer docId;
    /** 科室信息 */
    @Excel(name = "科室名称")
    private String depName;
    private Integer depId;
    /** 患者信息 */
    private Integer memberId;
    @Excel(name = "患者姓名")
    private String memberName;
    @Excel(name = "患者年龄")
    private Integer memberAge;
    @Excel(name = "患者性别",dictType = "sys_user_sex")
    private Integer memberSex;
    private String phone;
    private String avatar;
    private String nickName;
    private Integer memberState;


    public Integer getPayWay() {
        return payWay;
    }

    public void setPayWay(Integer payWay) {
        this.payWay = payWay;
    }

    public MemberConInfo getMemberConInfo() {
        return memberConInfo;
    }

    public void setMemberConInfo(MemberConInfo memberConInfo) {
        this.memberConInfo = memberConInfo;
    }

    public Integer getMcId() {
        return mcId;
    }

    public void setMcId(Integer mcId) {
        this.mcId = mcId;
    }

    public String getPics() {
        return pics;
    }

    public void setPics(String pics) {
        this.pics = pics;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getDocNickname() {
        return docNickname;
    }

    public void setDocNickname(String docNickname) {
        this.docNickname = docNickname;
    }

    public String getDocAvatar() {
        return docAvatar;
    }

    public void setDocAvatar(String docAvatar) {
        this.docAvatar = docAvatar;
    }

    //处方中的药品信息列表
    private List<PrescriptionDrug> prescriptionDrugs;

    public Integer getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Integer beginTime) {
        this.beginTime = beginTime;
    }

    public List<PrescriptionDrug> getPrescriptionDrugs() {
        return prescriptionDrugs;
    }

    public String getConNo() {
        return conNo;
    }

    public void setConNo(String conNo) {
        this.conNo = conNo;
    }

    public void setPrescriptionDrugs(List<PrescriptionDrug> prescriptionDrugs) {
        this.prescriptionDrugs = prescriptionDrugs;
    }

    public String getPrescriptionNumber() {
        return prescriptionNumber;
    }

    public void setPrescriptionNumber(String prescriptionNumber) {
        this.prescriptionNumber = prescriptionNumber;
    }

    public String getPharmacistName() {
        return pharmacistName;
    }

    public void setPharmacistName(String pharmacistName) {
        this.pharmacistName = pharmacistName;
    }

    public Integer getPrescriptionAuditTime() {
        return prescriptionAuditTime;
    }

    public void setPrescriptionAuditTime(Integer prescriptionAuditTime) {
        this.prescriptionAuditTime = prescriptionAuditTime;
    }

    public Integer getPrescriptionState() {
        return prescriptionState;
    }

    public void setPrescriptionState(Integer prescriptionState) {
        this.prescriptionState = prescriptionState;
    }

    public String getPreDiagnosis() {
        return preDiagnosis;
    }

    public void setPreDiagnosis(String preDiagnosis) {
        this.preDiagnosis = preDiagnosis;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getGroupType() {
        return groupType;
    }

    public void setGroupType(String groupType) {
        this.groupType = groupType;
    }

    public Integer getMemberState() {
        return memberState;
    }

    public void setMemberState(Integer memberState) {
        this.memberState = memberState;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    /** 删除时间 */
    private Integer deleteTime;

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public Integer getMemberAge() {
        return memberAge;
    }

    public void setMemberAge(Integer memberAge) {
        this.memberAge = memberAge;
    }

    public Integer getMemberSex() {
        return memberSex;
    }

    public void setMemberSex(Integer memberSex) {
        this.memberSex = memberSex;
    }

    public String getDepName() {
        return depName;
    }

    public void setDepName(String depName) {
        this.depName = depName;
    }

    public String getDocName() {
        return docName;
    }

    public void setDocName(String docName) {
        this.docName = docName;
    }

    public String getHisName() {
        return hisName;
    }

    public void setHisName(String hisName) {
        this.hisName = hisName;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setMemberId(Integer memberId) 
    {
        this.memberId = memberId;
    }

    public Integer getMemberId() 
    {
        return memberId;
    }
    public void setDepId(Integer depId) 
    {
        this.depId = depId;
    }

    public Integer getDepId() 
    {
        return depId;
    }
    public void setDocId(Integer docId) 
    {
        this.docId = docId;
    }

    public Integer getDocId() 
    {
        return docId;
    }
    public void setHisId(Integer hisId) 
    {
        this.hisId = hisId;
    }

    public Integer getHisId() 
    {
        return hisId;
    }
    public void setConAmount(BigDecimal conAmount) 
    {
        this.conAmount = conAmount;
    }

    public BigDecimal getConAmount() 
    {
        return conAmount;
    }
    public void setConType(Integer conType) 
    {
        this.conType = conType;
    }

    public Integer getConType() 
    {
        return conType;
    }
    public void setConState(Integer conState) 
    {
        this.conState = conState;
    }

    public Integer getConState() 
    {
        return conState;
    }
    public void setAppointTime(Integer appointTime) 
    {
        this.appointTime = appointTime;
    }

    public Integer getAppointTime() 
    {
        return appointTime;
    }
    public void setDeleteTime(Integer deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Integer getDeleteTime() 
    {
        return deleteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("depId", getDepId())
            .append("docId", getDocId())
            .append("hisId", getHisId())
            .append("conAmount", getConAmount())
            .append("conType", getConType())
            .append("conState", getConState())
            .append("appointTime", getAppointTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleteTime", getDeleteTime())
            .toString();
    }
}
